<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" ng-click="cancle()">&times;</button>
	<p class="modal-title">租户列表</p>
</div>
<div class="modal-body panel-body">
	<div class="col-md-12 search-box m-b-md">
		<div class="legend">查询条件</div>
		<div class="search-content">
			<div class="form-group">
				<label class="control-label">租户名称：</label>
				<input type="text" class="form-control" ng-model="name"/>
			</div>
		</div>
		<div class="search-btn">
			<button class="btn btn-primary w-xs m-r" ng-click="search()"><i class="fa fa-search"></i> 查询</button>
		</div>
	</div>
	<div class="col-md-12">
		<div class="table-responsive">
			<table class="table table-hover b-light m-b-xxs">
				<thead >
				<tr>
					<th class="text-center"></th>
					<th class="text-center">租户名称</th>
					<th class="text-center">状态</th>
					<th class="text-center">公司名称</th>
					<th class="text-center">服务时间</th>
				</tr>
				</thead>
				<tbody>
				<tr ng-repeat="(key,row) in listData">
					<td class="text-center">
						<label class="i-checks m-b-none" ng-click="selectItem($event,row)"><input type="checkbox" ng-model="row.isSelected"><i></i></label>
					</td>
					<td class="text-center" ng-bind="row.name"></td>
					<td class="text-center">
						<button class="btn btn-xs disabled ng-binding btn-success" style="width:60px;" ng-class="{'NORMAL':'btn-success','ABNORMAL':'btn-warning'}[row.status]" title="正常" ng-bind="row.status|cnUser:'status'"></button>
					</td>
					<td class="text-center" ng-bind="row.company"></td>
					<td class="text-center" >
						<input ng-model="row.date" class="form-control" ui-jq="daterangepicker" ui-options="{format: 'YYYY/MM/DD hh:mm:ss'}" placeholder="请选择时间" />
					</td>
				</tr>
				</tbody>
			</table>
			<div class="clearfix">
				<div class="col-sm-5">
					<div class="paginationTables_info">共有<span ng-bind="totalPage"></span>条记录，每页显示<span ng-bind="param.rows"></span>条
					</div>
				</div>
				<div class="col-sm-7 text-right">
					<pagination boundary-links="true" total-items="totalPage" items-per-page="param.rows" max-size="6" ng-model="param.page" ng-change="getList(param.page)" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></pagination>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="modal-footer">
	<button type="submit" class="btn btn-primary" ng-click="ok()">确认</button>
	<button class="btn btn-default" ng-click="cancle()">取消</button>
</div>
